// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_MST_ORDER_CHANGE
// * CreateDate    : 2011/9/27 11:24:17
// * Creater       : CodeSmith
// * LastChangeDate: 2011/9/27 11:24:17
// * LastChanger   : 2011/9/27 11:24:17
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class MstOrderChangeEntity : EntityBase
    {
        public MstOrderChangeTable TableSchema
        {
            get
            {
                return MstOrderChangeTable.Current;
            }
		}
		
		public MstOrderChangeEntity()
        {

        }
		
		public MstOrderChangeEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.OrderChangeId = Convert.ToString(CommonFunctions.ToObject(dr["ORDER_CHANGE_ID"]));
			this.OrderId = Convert.ToString(CommonFunctions.ToObject(dr["ORDER_ID"]));
			this.ChangeType = Convert.ToString(CommonFunctions.ToObject(dr["CHANGE_TYPE"]));
			this.SendTo = Convert.ToString(CommonFunctions.ToObject(dr["SEND_TO"]));
			this.ChangeTitle = Convert.ToString(CommonFunctions.ToObject(dr["CHANGE_TITLE"]));
			this.ChangeContent = Convert.ToString(CommonFunctions.ToObject(dr["CHANGE_CONTENT"]));
			this.ChangePerson = Convert.ToString(CommonFunctions.ToObject(dr["CHANGE_PERSON"]));
			this.ChangeDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CHANGE_DATE"]));
        }
		
		public MstOrderChangeEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.OrderChangeId = Convert.ToString(CommonFunctions.ToObject(dr["ORDER_CHANGE_ID"]));
			this.OrderId = Convert.ToString(CommonFunctions.ToObject(dr["ORDER_ID"]));
			this.ChangeType = Convert.ToString(CommonFunctions.ToObject(dr["CHANGE_TYPE"]));
			this.SendTo = Convert.ToString(CommonFunctions.ToObject(dr["SEND_TO"]));
			this.ChangeTitle = Convert.ToString(CommonFunctions.ToObject(dr["CHANGE_TITLE"]));
			this.ChangeContent = Convert.ToString(CommonFunctions.ToObject(dr["CHANGE_CONTENT"]));
			this.ChangePerson = Convert.ToString(CommonFunctions.ToObject(dr["CHANGE_PERSON"]));
			this.ChangeDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CHANGE_DATE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return MstOrderChangeTable.Current;
            }
        }
		
		#region Perporty List
        public string OrderChangeId
        {
            get { return Convert.ToString(GetData(MstOrderChangeTable.C_ORDER_CHANGE_ID)); }
            set { SetData(MstOrderChangeTable.C_ORDER_CHANGE_ID, value); }
        }
		
        public string OrderId
        {
            get { return Convert.ToString(GetData(MstOrderChangeTable.C_ORDER_ID)); }
            set { SetData(MstOrderChangeTable.C_ORDER_ID, value); }
        }
		
        public string ChangeType
        {
            get { return Convert.ToString(GetData(MstOrderChangeTable.C_CHANGE_TYPE)); }
            set { SetData(MstOrderChangeTable.C_CHANGE_TYPE, value); }
        }
		
        public string SendTo
        {
            get { return Convert.ToString(GetData(MstOrderChangeTable.C_SEND_TO)); }
            set { SetData(MstOrderChangeTable.C_SEND_TO, value); }
        }
		
        public string ChangeTitle
        {
            get { return Convert.ToString(GetData(MstOrderChangeTable.C_CHANGE_TITLE)); }
            set { SetData(MstOrderChangeTable.C_CHANGE_TITLE, value); }
        }
		
        public string ChangeContent
        {
            get { return Convert.ToString(GetData(MstOrderChangeTable.C_CHANGE_CONTENT)); }
            set { SetData(MstOrderChangeTable.C_CHANGE_CONTENT, value); }
        }
		
        public string ChangePerson
        {
            get { return Convert.ToString(GetData(MstOrderChangeTable.C_CHANGE_PERSON)); }
            set { SetData(MstOrderChangeTable.C_CHANGE_PERSON, value); }
        }
		
        public DateTime ChangeDate
        {
            get { return Convert.ToDateTime(GetData(MstOrderChangeTable.C_CHANGE_DATE)); }
            set { SetData(MstOrderChangeTable.C_CHANGE_DATE, value); }
        }
		
		#endregion
	}
	
	
}	

